package sendtargettype

type SendTargetTypeEnum int

const (
	TargetTypeOfDept SendTargetTypeEnum = iota + 1
	TargetTypeOfPosition
	TargetTypeOfUser
	TargetTypeOfCustom
)

//自定义返回枚举类型
type sendTarget struct {
	Type    string
	TypeMsg string
}

func (it SendTargetTypeEnum) Get() sendTarget {
	switch it {
	case TargetTypeOfDept:
		return sendTarget{Type: "1", TypeMsg: "分组"}
	case TargetTypeOfPosition:
		return sendTarget{Type: "2", TypeMsg: "职位"}
	case TargetTypeOfUser:
		return sendTarget{Type: "3", TypeMsg: "人员"}
	case TargetTypeOfCustom:
		return sendTarget{Type: "4", TypeMsg: "自定义"}
	default:
		return sendTarget{}
	}
}
